﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <meta name="viewport" content="width=device-width" />
    <title>UserMange</title>

</head>

<body>
    <script src="../../Scripts/js/UserManage.js"></script>
    <table id="dg" class="easyui-datagrid" style="width: auto; height: auto"
        data-options="rownumbers:true,singleSelect:true,pagination:true,url:'../admin/ReadUser',toolbar:'#tb'">
        <thead>
            <tr>
                <th data-options="field:'ID',width:80">用户ID</th>
                <th data-options="field:'username',width:100">用户名</th>
                <th data-options="field:'passworld',width:80,align:'right'">密码</th>
                <th data-options="field:'type',width:80,align:'right'">用户类型</th>

            </tr>
        </thead>
    </table>
    <div id="tb" style="padding: 2px 5px;">
        <div id="ft" style="padding: 2px 5px;">
            <a href="#" class="easyui-linkbutton" iconcls="icon-edit" onclick="edit()" plain="true">修改选中</a>
            <a href="#" class="easyui-linkbutton" iconcls="icon-remove" onclick="del()" plain="true">删除选中</a>
        </div>
        用户名:
        <input id="uasername" class="easyui-validatebox textbox" style="width: 110px">
        密码:
        <input id="pwd" class="easyui-validatebox textbox" style="width: 110px">
        用户类型: 
		<select id="Utype" class="easyui-combobox" panelheight="auto" style="width: 100px">
            <option value="1">超级管理员</option>
            <option value="2">网站管理</option>
            <option value="3">入住管理</option>
        </select>
        <a href="#" class="easyui-linkbutton" onclick="Adduser()" iconcls="icon-add">添加</a>
    </div>

    <div id="dd" class="easyui-dialog" title="修改用户资料" style="width: 200px; height: 200px;"
        data-options="iconCls:'icon-save',resizable:true,modal:true,closed: true">
        <div id="Div1" style="padding: 2px 5px;">
            用户名:
        <input id="user1" class="easyui-validatebox textbox" readOnly="true" style="width: 110px"><br />
            密  码:
        <input id="pwd1" class="easyui-validatebox textbox" style="width: 110px"><br />
            用户类型: 
		<select id="Utype1" class="easyui-combobox" panelheight="auto" style="width: 100px"><br />
            <option value="1">超级管理员</option>
            <option value="2">客房管理</option>
            <option value="3">网站管理</option>
        </select><br />
            <a href="#" class="easyui-linkbutton" onclick="updatauser()" iconcls="icon-edit">更新</a>
        </div>
    </div>

</body>
</html>
